package com.feisuanyz.lyweb01.pojo.query;

import lombok.Data;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.NotBlank;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 用户案例查询对象
 *
 * @author deng
 * @date 2025-02-26 11:57:37
 */
@Data
public class UserCaseQuery {

    /**
     * 案例ID
     */
    @NotNull(groups = { QueryGroup.class }, message = "案例ID不能为空")
    @Schema(description = "案例ID")
    private Integer caseId;

    /**
     * 搜索关键词
     */
    @NotBlank(groups = { QueryGroup.class }, message = "搜索关键词不能为空")
    @Schema(description = "搜索关键词")
    private String keyword;

    /**
     * 页码
     */
    @Schema(description = "页码")
    private int pageIndex = 1;

    /**
     * 每页数量
     */
    @Schema(description = "每页数量")
    private int pageSize = 10;
}
